<a name="event_{{name}}" class="anchor-link"></a>
<div class="events item{{#if access}} {{access}}{{/if}}{{#if deprecated}} deprecated{{/if}}{{#if extendedFrom}} inherited{{/if}}">
    <h3 class="name"><code>{{name}}</code></h3>

    {{#if deprecated}}
        <span class="flag deprecated"{{#if deprecationMessage}} title="{{deprecationMessage}}"{{/if}}>deprecated</span>
    {{/if}}

    {{#if access}}
        <span class="flag {{access}}">{{access}}</span>
    {{/if}}

    {{#if final}}
        <span class="flag final">final</span>
    {{/if}}

    {{#if static}}
        <span class="flag static">static</span>
    {{/if}}

    <div class="meta">
        {{#if overwritten_from}}
            <p>Inherited from
            <a href="{{crossLinkRaw overwritten_from/class}}#event_{{overwritten_from/name}}" class="type">
                {{overwritten_from/class}}
            </a>
            {{#if foundAt}}
            but overwritten in
            {{/if}}
        {{else}}
            {{#if extendedFrom}}
            {{#shouldShowInherit extendedFrom}}
                <p>{{@root.i18n.INHERITED_FROM}}
                <a href="{{crossLinkRaw ../extendedFrom}}#event_{{name}}" class="type">{{../extendedFrom}}</a>:
            {{/shouldShowInherit}}
            {{else}}
                {{#providedBy}}
                    <p>Provided by the <a href="../modules/{{.}}.html" class="module-name">{{.}}</a> module.</p>
                {{/providedBy}}
                <p>
                {{!-- {{#if foundAt}} --}}
                {{!-- Defined in --}}
                {{!-- {{/if}} --}}
            {{/if}}
        {{/if}}
        {{#if foundAt}}
        <a href="{{foundAt}}">`{{{file}}}:{{{line}}}`</a>
        {{/if}}
        </p>

        {{#if deprecationMessage}}
            <p class="deprecated">Deprecated: <span class="message">{{deprecationMessage}}</span></p>
        {{/if}}

        {{#if since}}
            <p class="since">Available since <span class="message">{{since}}</span></p>
        {{/if}}
    </div>

    <div class="extended-detail">

        <div class="description">
            {{{description}}}
        </div>

        {{#if params}}
            <div class="params">
                <h4>Event Payload:</h4>

                <ul class="params-list">
                {{#params}}
                    <li class="param">
                        {{#if optional}}
                            <code class="param-name optional">[{{name}}{{#if optdefault}}={{optdefault}}{{/if}}]</code>
                            <span class="type">{{#crossLink type}}{{/crossLink}}</span>
                            <span class="flag optional" title="This parameter is optional.">optional</span>
                        {{else}}
                            <code class="param-name">{{name}}</code>
                            <span class="type">{{#crossLink type}}{{/crossLink}}</span>
                        {{/if}}

                        {{#if multiple}}
                            <span class="flag multiple" title="This parameter may occur one or more times.">Multiple</span>
                        {{/if}}

                        <div class="param-description">
                            {{{description}}}
                        </div>

                        {{#if props}}
                            <ul class="params-list">
                                {{#props}}
                                <li class="param">
                                    {{#if optional}}
                                        <code class="param-name optional">[{{name}}{{#if optdefault}}={{optdefault}}{{/if}}]</code>
                                        <span class="type">{{#crossLink type}}{{/crossLink}}</span>
                                        <span class="flag optional" title="This parameter is optional.">optional</span>
                                    {{else}}
                                        <code class="param-name">{{name}}</code>
                                        <span class="type">{{#crossLink type}}{{/crossLink}}</span>
                                    {{/if}}

                                    <div class="param-description">
                                        {{{description}}}
                                    </div>

                                    {{#if props}}
                                        <ul class="params-list">
                                            {{#props}}
                                            <li class="param">
                                                <code class="param-name">{{name}}</code>
                                                <span class="type">{{#crossLink type}}{{/crossLink}}</span>

                                                <div class="param-description">
                                                    {{{description}}}
                                                </div>
                                            </li>
                                            {{/props}}
                                        </ul>
                                    {{/if}}
                                </li>
                                {{/props}}
                            </ul>
                        {{/if}}
                    </li>
                {{/params}}
                </ul>
            </div>
        {{/if}}


        {{#example}}
            <div class="example">
                <h4>{{../i18n.EXAMPLES}}:</h4>
                <div class="example-content">
                    {{{.}}}
                </div>
            </div>
        {{/example}}
    </div>
</div>
